"----------------------
" Autoformat config
"----------------------


let g:formatdef_my_cpp = '"astyle --style=kr --indent=force-tab=8 -xC80 -xL -xb -W3 -M80 -m0 -Y -w"'
let g:formatdef_my_c = '"astyle --style=kr --indent=force-tab=8 -xC80 -xL -xb -W3 -M80 -m0 -Y -w"'
let g:formatters_cpp = ['my_cpp']
let g:formatters_c = ['my_c']
"au BufWrite *.c,*.h :Autoformat
"autocmd InsertLeave *.c,*.h,*.cpp :Autoformat
